import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/stat-production-progress/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getDetail = (id) => {
  return request({
    url: '/api/mes-product/work-order/detail',
    method: 'get',
    params: {
      id
    }
  });
};

export const getProductProgress = (workOrderId) => {
  return request({
    url: '/api/mes-product/stat-production-progress/detail',
    method: 'get',
    params: {
      workOrderId
    }
  });
};

export const getProductInfo = (params) => {
  return request({
    url: '/api/mes-product/stat-production-progress/wip',
    method: 'get',
    params: params
  });
};
